import request from "@/utils/request"


// 添加文章
export  const addArctile = async(params) => {
    let data = {
        ...params,
        views:0, // 浏览次数
        is_hot:false,
        create_at : new Date(),
        likeCount:0,   
    }

    return request.post("/articles",data)
}
